import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/quality/quality-inventory-recheck/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/quality/quality-inventory-recheck/add',
    method: 'POST',
    data
  })
}

// 撤销
export function CancelAPI(data) {
  return request({
    url: '/quality/quality-inventory-recheck/revoke/' + data,
    method: 'GET'
  })
}

// 查看
export function GetDetailsAPI(data) {
  return request({
    url: '/quality/quality-inventory-recheck/view/' + data,
    method: 'GET'
  })
}

// 根据物料编码和批次号获取仓库信息
export function GetMessageAPI(params) {
  return request({
    url: '/storage/wmsStock/getMessage',
    method: 'GET',
    params
  })
}
